<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/1999/xheml">
<head>
    <meta charset="UTF-8" content="text/html; charset=UTF-8">
    <title>Title</title>
    <script src="../jquery-1.11.3.min.js"></script>
</head>
<body>
<form action="/update" method="post">
    <input type="hidden" name="_method" th:value="PUT"/>
    <input type="hidden" name="id" th:value="*{user.id}"/>
    <br/>
    姓名：<input name="name" th:value="*{user.name}"/>
    <br/>
    性别:<input type="radio" name="sex" value="1" th:checked="${user.sex}==1"/>男
         <input type="radio" name="sex" value="0" th:checked="${user.sex}==2"/>女
    <br/>
    工作:<input type="text" name="work" th:value="*{user.work}">
    <br/>

    <input type="submit"/>
</body>
</html>